<?php

namespace app\validate\api\housing;

use think\Validate;

class HousingSource1Validate extends Validate
{


	protected $rule = [
		'floor'   => 'require',
		'shop_type'   => 'require',
		'facing_street'   => 'require',
		'width_building_area'   => 'require',
		'building_floor_height'   => 'require',
		'building_depth'   => 'require',
		'management_status'   => 'require',
		'suitable_for_business_form'   => 'require',
		'decorate'   => 'require',
		'mode_detain'   => 'require',
		'mode_pay'   => 'require',
		'start_month'   => 'require',
		'exempt_month'   => 'require',
		'electricity_charge'   => 'require',
		'water_charge'   => 'require',
		'passenger_flow_crowd'   => 'require',
		'architecture_area'   => 'require',
		'negotiate'   => 'require',
		'unit_price'   => 'require',
		'total' => 'require',
	];


	protected $message = [
		'floor.require' => '楼层不能为空',
		'shop_type.require' => '商铺类型不能为空',
		'facing_street.require' => '是否临街不能为空',
		'width_building_area.require' => '建筑面宽不能为空',
		'building_floor_height.require' => '建筑层高不能为空',
		'building_depth.require' => '建筑进深不能为空',
		'management_status.require' => '经营状态不能为空',
		'suitable_for_business_form.require' => '适合业态不能为空',
		'decorate.require' => '装修情况不能为空',
		'mode_detain.require' => '押金不能为空',
		'mode_pay.require' => '付几个月不能为空',
		'start_month.require' => '起始租月不能为空',
		'exempt_month.require' => '免租期不能为空',
		'electricity_charge.require' => '电费不能为空',
		'water_charge.require' => '水费不能为空',
		'passenger_flow_crowd.require' => '客流人群不能为空',
		'architecture_area.require' => '建筑面积不能为空',
		'negotiate.require' => '面议不能为空',
		'unit_price.require' => '商铺单价不能为空',
		'total.require' => '总价不能为空',
	];

}